package com.ruoyi.procurementmanagement.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购价格分析对象 erp_purchase_price
 *
 * @author ruoyi
 * @date 2025-05-12
 */
public class ErpPurchasePrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long priceid;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String productid;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private String supplierid;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 有效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectivedate;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirydate;

    /** 是否当前有效价格 */
    @Excel(name = "是否当前有效价格")
    private Integer iscurrent;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtime;

    private String productname;

    public void setPriceid(Long priceid)
    {
        this.priceid = priceid;
    }

    public Long getPriceid()
    {
        return priceid;
    }
    public void setProductid(String productid)
    {
        this.productid = productid;
    }

    public String getProductid()
    {
        return productid;
    }
    public void setSupplierid(String supplierid)
    {
        this.supplierid = supplierid;
    }

    public String getSupplierid()
    {
        return supplierid;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setEffectivedate(Date effectivedate)
    {
        this.effectivedate = effectivedate;
    }

    public Date getEffectivedate()
    {
        return effectivedate;
    }
    public void setExpirydate(Date expirydate)
    {
        this.expirydate = expirydate;
    }

    public Date getExpirydate()
    {
        return expirydate;
    }
    public void setIscurrent(Integer iscurrent)
    {
        this.iscurrent = iscurrent;
    }

    public Integer getIscurrent()
    {
        return iscurrent;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("priceid", getPriceid())
            .append("productid", getProductid())
            .append("supplierid", getSupplierid())
            .append("price", getPrice())
            .append("effectivedate", getEffectivedate())
            .append("expirydate", getExpirydate())
            .append("iscurrent", getIscurrent())
            .append("creator", getCreator())
            .append("createtime", getCreatetime())
                .append("productname", getProductname())
            .toString();
    }
}
